import { Component } from "@angular/core"
import { NativeStorage } from '@ionic-native/native-storage';
import { TranslateService } from '@ngx-translate/core';

import { FeedbackPage } from "../feedback/feedback";
import { CustPage } from "../cust/cust";
import { AboutusPage } from "../about/about";
import { AppConfig } from '../../../../app/app.config';
@Component({
    selector: 'page-set',
    templateUrl: 'cus.html',
})

export class CusPage{
    feedbackPage = FeedbackPage
    custPage = CustPage
    aboutusPage = AboutusPage
    constructor(
        public storage:NativeStorage,
        private translate:TranslateService,
    ) {
        translate.setDefaultLang('en')
    }
    ionViewDidEnter(){
        this.storage.getItem('lang').then(res=>{
            this.translate.use(res)
        })
    }

}